package exam.note.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @author Xiongx
 * @version 1.0
 * @date 2021/4/4 17:11
 * @since JDK 1.8
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("笔记模型")
@TableName("note")
public class Note implements Serializable {

    @TableId(value = "id",type = IdType.AUTO)
    @ApiModelProperty("主键id")
    private Integer id;

    @TableField("title")
    @ApiModelProperty("标题")
    private String title;

    @TableField("note")
    @ApiModelProperty("备注")
    private String note;

    @TableField("typeid")
    @ApiModelProperty("类型id")
    private Integer typeId;

    @TableField(value = "createtime")
    @ApiModelProperty("创建时间")
    private Date createtTime;

    @TableField(value = "updatetime")
    @ApiModelProperty("更新时间")
    private Date updateTime;

    @TableField("version")
    @ApiModelProperty("版本号")
    private String version;

    @TableField("status")
    @ApiModelProperty("状态: 0,有效,1无效")
    private Integer status;

    @TableField(exist = false)
    @ApiModelProperty("类型名称")
    private String type;
}
